﻿<%if not in_sdcms then response.write("template load fail"):response.end() end if%>
<!DOCTYPE html>
<!--[if IE 8]>			<html class="ie ie8"> <![endif]-->
<!--[if IE 9]>			<html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!-->
<html>
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{sdcms[seokey]}" />
<meta name="Description" content="{sdcms[seodesc]}" />
<title>{sdcms[webname]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>var webroot="{webroot}";</script>
<script src="{webroot}theme/default/style/js/jquery-1.11.0.js" type="text/javascript"></script>
<link rel="stylesheet" href="{webroot}theme/default/style/css/font-awesome.css" type="text/css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/owl.carousel.css" media="screen" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/owl.theme.css" media="screen" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/bootstrap.3.2.0.css" type="text/css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/bootstrap-select.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme-elements.css" type="text/css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme-animate.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme-shop.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/settings.css" media="screen" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/component.css" media="screen" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/bim.css" type="text/css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/custom.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme-responsive.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/datepicker3.css" />
<link rel="stylesheet" href="{webroot}theme/default/css/other.css" />
<!--[if IE]>
        <link rel="stylesheet" href="{webroot}theme/default/style/css/ie.css">
    <![endif]-->
<!--[if lte IE 8]>
        <script src="{webroot}theme/default/style/js/respond.js"></script>
    <![endif]-->
<script src="{webroot}lib/js/jquery.js"></script>
<script src="{webroot}lib/js/jquery-migrate-1.1.0.min.js"></script>
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/js/base.js"></script>
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script src="{webroot}lib/validator/zh_CN.js"></script>
<script src="{webroot}theme/default/js/sdcms.js"></script>
<script>
$(function(){
	
	$(".form_base").validator(
	{
		stopOnError:true,
		theme:'yellow_right_effect',
		ignore:':hidden',
		valid:function(form)
		{
			$.fn.tips({type:'loading',content:'数据提交中'});
			$.ajax(
			{
				url:"?act=checkdb",
				type:"post",
				data:$(form).serialize(),
				success:function(data){
					data=jQuery.parseJSON(data);
					var type="warn";
					if(data.status=="y"){type="ok";}
					$.fn.tips({type:type,content:data.info});
					if(data.status=="y")
					{
						setTimeout("location.href='?'",1000);
					}
				}
			});
		}
	});
	
	$("#user_menu_10").addClass("hover");
})
</script>
</head>

<body>
<div class="body">
    {sdcms:include("../sdcms_head.asp")}
   <div id="useragreement-modal" class="modal fade" tabindex="-1">
    <div class="modal-dialog modal-lg">
      <div class="modal-content"></div>
    </div>
  </div>
  <div id="privacy-policy-modal" class="modal fade" tabindex="-1">
    <div class="modal-dialog modal-lg">
      <div class="modal-content"></div>
    </div>
  </div>
  <div role="main" class="main">
    <div class="space10"></div>
    <div id="content" class="content full">
      <div role="main" class="main shop">
        <div class="container">
         <div class="space20"></div>
        <div class="main_left">
        {sdcms:include("sdcms_menu.asp")}
        </div> 
        <div class="main_right">
        <div class="title">基本信息</div>
         <div class="p12">
               {dim userdata:userdata=sdcms.userinfo}
               {sdcms:rs top="1" table="sd_user_data" where="userid=[userdata(0)]"}
               {dim truename:truename=$rs[truename]}
               {dim sex:sex=$rs[sex]}
               {dim birthday:birthday=sdcms.getdate($rs[birthday],"-",1)}
               {dim qq:qq=$rs[qq]}
               {dim msn:msn=$rs[msn]}
               {dim mobile:mobile=$rs[mobile]}
               {dim tel:tel=$rs[tel]}
               {dim job:job=$rs[job]}
               {dim zipcode:zipcode=$rs[zipcode]}
               {dim address:address=$rs[address]}
               {/sdcms:rs} 
               <form class="form_base" method="post">
               <ul id="reg">
                   <li><em>用户名：</em>{userdata(1)}</li>
                   <li><em>真实姓名：</em><input type="text" name="truename" class="ip w03" value="{truename}" maxlength="4" data-rule="真实姓名:required;chinese;length[2~4]" /></li>
                   <li><em>性别：</em>
                   <input type="radio" name="sex" id="sex_1" value="1" {if sex=1}checked{/if} data-rule="性别:checked;" /><label for="sex_1">男</label>
                   <input type="radio" name="sex" id="sex_2" value="2" {if sex=2}checked{/if} /><label for="sex_2">女</label>
                   </li>
                   <li><em>生日：</em><input type="text" name="birthday" class="ip w04" value="{birthday}" data-rule="生日:required;date;"  /></li>
                   <li><em>QQ：</em><input type="text" name="qq" class="ip w03" value="{qq}" maxlength="15" data-rule="QQ:required;qq;" /></li>
                   <li><em>MSN：</em><input type="text" name="msn" class="ip w01" value="{msn}" maxlength="50" /></li>
                   <li><em>手机：</em><input type="text" name="mobile" class="ip w04" value="{mobile}" maxlength="11" data-rule="手机:required;mobile;" /></li>
                   <li><em>电话：</em><input type="text" name="tel" class="ip w04" value="{tel}" maxlength="13" /></li>
                   <li><em>职业：</em><input type="text" name="job" class="ip w03" value="{job}" maxlength="10" /></li>
                   <li><em>邮编：</em><input type="text" name="zipcode" class="ip w03" value="{zipcode}" maxlength="6" /></li>
                   <li><em>地址：</em><input type="text" name="address" class="ip w01" value="{address}" maxlength="50" /></li>
                   <dd><input type="submit" value="保存" class="bnt_blue" /> <input type="button" value="取消" onclick="location.href='javascript:history.go(-1)'" class="bnt_blue" /></dd>
               </ul>
               </form>
                </div>
        </div> 
        <div class="clear"></div>
        </div>
      </div>
    </div>
  </div>
    {sdcms:include("../sdcms_foot.asp")}
  </div>
<script src="{webroot}theme/default/style/js/jqueryappear.js"></script> 

<!-- Libs --> 
<script src="{webroot}theme/default/style/js/plugins.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.easing.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.cookie.js"></script> 
<script src="{webroot}theme/default/style/js/bootstrap.min.3.2.0.js"></script> 
<script type="text/javascript" src="{webroot}theme/default/style/js/bootstrap-datepicker.js"></script> 
<script type="text/javascript" src="{webroot}theme/default/style/js/bootstrap-datepicker.defaults.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.themepunch.tools.min.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.themepunch.revolution.js"></script> 
<script src="{webroot}theme/default/style/js/owl.carousel.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.flipshow.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.stellar.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.validate.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.isotope.js"></script> 
<script src="{webroot}theme/default/style/js/view.home.js"></script> 
<script src="{webroot}theme/default/style/js/theme.js"></script> 
<script type="text/javascript" src="{webroot}theme/default/style/js/site.dialogues.js"></script>
</body>
</html>